﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace NamazVakti
{
    public partial class ChangeCityForm : Form
    {
        static ChangeCityForm thisForm;

        public ChangeCityForm()
        {
            InitializeComponent();
        }

        public static void Open()
        {
            if (thisForm == null)
                thisForm = new ChangeCityForm();
            thisForm.ShowDialog();
        }

        private void menuItemCancel_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void menuItemSelect_Click(object sender, EventArgs e)
        {
            if (listCities.SelectedItem != null)
            {
                Parameters.Save(listCities.SelectedItem.ToString());
                Close();
            }
        }
    }
}